Stop Event (Report Object)

Sample Code - Stop Event

The Stop event that occurs when report stops printing/previewing.

Syntax
Event Stop (Destination As CRPrintingDestination, 
Status As CRPrintingProgress)
Parameters

Destination

Specifies CRPrintingDestination (see table below) indicating what "destination" the report will be printed to (that is, printer, window, exported, etc.).


Constant Value


crFromQuery

4


crToExport

3


crToNoWhere

0


crToPrinter

2


crToWindow

1

Status

Specifies CRPrintingProgress (see table below) indicating the progress of the report print job (that is, in progress, halted, cancelled, etc.).


Constant Value


crPrintingCancelled

5


crPrintingCompleted

3


crPrintingFailed

4


crPrintingHalted

6


crPrintingInProgress

2


crPrintingNotStarted

1

Remarks

This event is enabled using the StartStopEventEnabled property of the EventInfo Object, obtained through the EventInfo property of the Report Object. For more information, see Object Model Events.



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com